﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class LibraryBLL
    {
        public DataTable Select(string TableName)
        {
            return new LibraryDAL().Select(TableName);
        }
        public DataTable FY(string TableName, int YM)
        {
            return new LibraryDAL().FY(TableName, YM);
        }
        public bool Add(LibraryModel model)
        {
            return new LibraryDAL().Add(model);
        }
        public bool Gai(LibraryModel model, int id)
        {
            return new LibraryDAL().Gai(model, id);
        }
        public LibraryModel GetModelByID(string TableName, int id)
        {
            return new LibraryDAL().GetModelByID(TableName, id);
        }
        public bool Del(string TableName, int id)
        {
            return new LibraryDAL().Del(TableName, id);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new LibraryDAL().SelectNo(tableName, mz);
        }

        public bool Sh(int a, int id)
        {
                return new LibraryDAL().Sh(a, id);
        }
    }
}
